package com.gopay.common.cps.dao.bt.impl;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.gopay.common.base.dao.impl.BaseDAOImpl;
import com.gopay.common.cps.dao.bt.CpsGainStlOrderDAO;
import com.gopay.common.domain.cps.CpsGainsStlOrder;
/**
 * 
 * @CpsGainStlOrderDAOImpl.java
 * @author mz
 * @2013-8-1 上午11:19:50  www.gopay.com.cn Inc.All rights reserved.
 */
@Repository("cpsGainStlOrderDAO")
public class CpsGainStlOrderDAOImpl extends BaseDAOImpl<CpsGainsStlOrder, Serializable> implements CpsGainStlOrderDAO{

    @Override
    public CpsGainsStlOrder getBtGainSettleBySettleOrderNum(String settleOrderNum) {
        HashMap<String, Object> map = new HashMap<String, Object>();
        map.put("settleOrderNum", settleOrderNum);
        List<CpsGainsStlOrder> orders = findByHql("from CpsGainsStlOrder where settleOrderNum=:settleOrderNum",map);
        return orders==null||orders.size()==0?null:orders.get(0);
    }

}
